
public class Train {

	static int num_inst; 
	
	private int id;
	
	public Train() {
		
		this.id=num_inst;
		num_inst++;
	}


	public int getId() {
		return id;
	}
	
	public String toString() {
		
		String s = new String("Train@"+id);
		
		return s;
	}
	
}
